package cn.da.shuai.cool.system.model.entity.user;

import cn.da.shuai.cool.system.model.enums.user.GenderType;
import cn.da.shuai.cool.system.model.enums.user.UserStatusType;
import cn.da.shuai.cool.system.model.enums.user.UserType;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Schema(name = "用户列表", description = "用户列表视图对象")
@Data
public class UserListDto implements Serializable {

    @Schema(description = "主键")
    private Long id;

    @Schema(description = "姓名")
    private String username;

    @Schema(description = "用户编号")
    private String userNo;

    @Schema(description = "用户昵称")
    private String nickName;

    @Schema(description = "用户类型")
    private UserType userType;

    @Schema(description = "邮箱")
    private String email;

    @Schema(description = "性别（-1未知 0男 1女 2未知）")
    private GenderType gender;

    @Schema(description = "帐号状态（1正常 2停用 3删除）")
    private UserStatusType status;

    @Schema(description = "头像路径")
    private String avatar;

    @Schema(description = "最后登录时间")
    private LocalDateTime lastLoginTime;

    @Schema(description = "部门名称")
    private String deptName;

    @Schema(description = "角色名称")
    private String roleName;
}
